#import "CTCommonModel.h"
@implementation CTCommonModel
- (instancetype)init {
    if (self = [super init]) {
        [self ct_configBase];
        [self ct_config];
    }
    return self;
}
- (void)ct_configBase {
    self.applicationUniqueIdentifier = [CTEnvironmentManager shareManager].appid;
    self.countryAbbreviation = [CTAFManager getChannel];
    self.businessChannel = [CTEnvironmentManager shareManager].chBiz;
    self.countrySubdivisionCode = [CTEnvironmentManager shareManager].chSub;
    self.regionalDistrict = [CTEnvironmentManager shareManager].district;
    self.creationEpoch = kGetCurentTime;
    CLLocation *var_location = [CTLocationManager sharedManager].currentLocation;
    if (var_location.coordinate.latitude == 0.00 && var_location.coordinate.longitude == 0.00) {
        self.geographicCoordinateLatitude = @"";
        self.geographicCoordinateLongitude = @"";
    } else {
        self.geographicCoordinateLatitude = [NSString stringWithFormat:@"%f",var_location.coordinate.latitude];
        self.geographicCoordinateLongitude = [NSString stringWithFormat:@"%f",var_location.coordinate.longitude];
    }
    CTUserModel *var_model = [CTUserManager shareManager].userModel;
    self.sessionIdentifier = [CTUserManager shareManager].var_sessionId;
    self.tokenUniqueIdentifier = [[CTUserManager shareManager] ct_getTokenId];
    self.softwareVersion = [self ct_appVersion];
    self.uniqueUserGroupIdentifier = var_model.userGroup;
    self.userTimestamp = kGetCurentTime;
    self.uniqueZuid = [CTUserManager  ct_getZuid];
}
- (void)ct_config {
}
- (NSString *)ct_appVersion {
    NSDictionary *var_infoDic = [[NSBundle mainBundle] infoDictionary];
    NSString *var_version = [var_infoDic objectForKey:@"CFBundleShortVersionString"];
    return var_version;
}
@end
